-
Notifications
You must be signed in to change notification settings - Fork 788
New Guide - rock, paper, scissors game for CLUE and CPB. #1185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
All ok now. (Please don't merge yet - I've got a little bit more minor tidying to do, will do this today.) |
Good to go, now. |
@TheKitty might be interested in this. |
@dhalbert - would you please double check this use of Bluetooth between devices per this guide in moderation https://learn.adafruit.com/admin/guides/2998/editor |
FYI, there's some notes on the innards in the draft Learn Guide with current title of "CLUE Rock, Paper, Scissors Game using Bluetooth" |
I've just improved the error reporting in case the user has missing audio files. Will have a commit for that on the way within 20 mins. |
…iles from SampleJukebox constructor with new SampleJukeboxError exception.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an amazing amount of work! I am sorry you have to deal with the storage foibles.
Could you have used a more ad-hoc advertisement, instead of all the Manufacturer data field stuff? Would that have simplified things?
Removing error_output in SampleJukebox constructor as it is no longer used (exception now lists all missing files).
…e based on const() numbers for WIN, DRAW, LOSE, INVALID. Maintains the use of booleans on the call to rps_display.showPlayerVPlayer(). adafruit#1185
…tax based on review. adafruit#1185
…rip based on review. Note: CP 5.3.0 bytes(xx) always make a new object. adafruit#1185
…replaces prefix. Changing to matching using the library rather than the match_locally enabled code and a few fixes around that dusty code path. match_prefixes came up in the review adafruit#1185
|
…creen to set in constructor rather than later via property. This is neater but main motivation is to work around a Label y position bug.
Squashing some assignments onto one line.
On the format of the application's I intended to watch this space and update the code with a better solution when one appeared or I found one. If ordering within
I like the sound of 2 myself but 1 happens to be very easy to implement as I think it could be achieve with just replaced |
…as due to misunderstanding from REPL behaviour.
@kevinjwalters Is it at the merge point now? |
@TheKitty Almost, would be good to get a view on #1185 (comment) from @dhalbert |
I think 1 is fine with an
|
…turer data declared and set in the desired serialization order. Changing the id numbers on manufacturer data in the advertisements to use a broadly sequential set. Removing unused RPS_VERSION. adafruit#1185
I've updated my code and thrown in some TDD using new |
@TheKitty This is good to merge now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This is all set now, because the OrderedDict
fix has gone into adafruit_ble
, and been released.
Some CircuitPython files for a new guide. Four directories, three different versions of the game plus unit tests:
very-simple
simple
advanced
- this includes anrps
subdirectory holdingwav
files and abmp
filetests
- two units tests which can run under CPython